// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import ElementUI from "element-ui";
import request from "./plugins/request";
import "element-ui/lib/theme-chalk/index.css";
import "../src/assets/css/reset.css";
import router from "./router";
import moment from "moment";
import Mybread from "./components/cuscom/myBread.vue";

Vue.use(ElementUI);
Vue.prototype.$http = request;
Vue.config.productionTip = false;

//全局过滤器
Vue.filter("fmtdate", v => {
  return moment(v).format("YYYY-MM-DD");
});
//全局自定义组件
Vue.component("my-bread", Mybread); //MyBread.name

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
